

from flask_script import Manager


#导入数据库迁移框架
from flask_migrate import MigrateCommand,Migrate
#导入create_app函数
from info import return_app,db

#导入models模块
from info import models

app = return_app('development')

#实例化Manage
manager = Manager(app)
Migrate(app,db)

#添加迁移命令
manager.add_command('db',MigrateCommand)


if __name__ == '__main__':
    print(app.url_map)
    manager.run()
